package com.jcute.core.logging.imp;

import org.slf4j.Logger;

import com.jcute.core.logging.abs.AbstractLogger;

/**
 * slf4j日志功能封装
 */
public class LoggerForSLF4J extends AbstractLogger{

	private static final long serialVersionUID = 108038972685130825L;
	private final transient Logger logger;

	public LoggerForSLF4J(Logger logger){
		super(logger.getName());
		this.logger = logger;
	}

	@Override
	public boolean isTraceEnabled(){
		return this.logger.isTraceEnabled();
	}

	@Override
	public boolean isDebugEnabled(){
		return this.logger.isDebugEnabled();
	}

	@Override
	public boolean isInfoEnabled(){
		return this.logger.isInfoEnabled();
	}

	@Override
	public boolean isWarnEnabled(){
		return this.logger.isWarnEnabled();
	}

	@Override
	public boolean isErrorEnabled(){
		return this.logger.isErrorEnabled();
	}

	@Override
	public void trace(String msg){
		this.logger.trace(msg);
	}

	@Override
	public void trace(String msg,Throwable t){
		this.logger.trace(msg,t);
	}

	@Override
	public void trace(String format,Object arg){
		this.logger.trace(format,arg);
	}

	@Override
	public void trace(String format,Object argA,Object argB){
		this.logger.trace(format,argA,argB);
	}

	@Override
	public void trace(String format,Object... arguments){
		this.logger.trace(format,arguments);
	}

	@Override
	public void debug(String msg){
		this.logger.debug(msg);
	}

	@Override
	public void debug(String msg,Throwable t){
		this.logger.debug(msg,t);
	}

	@Override
	public void debug(String format,Object arg){
		this.logger.debug(format,arg);
	}

	@Override
	public void debug(String format,Object argA,Object argB){
		this.logger.debug(format,argA,argB);
	}

	@Override
	public void debug(String format,Object... arguments){
		this.logger.debug(format,arguments);
	}

	@Override
	public void info(String msg){
		this.logger.info(msg);
	}

	@Override
	public void info(String msg,Throwable t){
		this.logger.info(msg,t);
	}

	@Override
	public void info(String format,Object arg){
		this.logger.info(format,arg);
	}

	@Override
	public void info(String format,Object argA,Object argB){
		this.logger.info(format,argA,argB);
	}

	@Override
	public void info(String format,Object... arguments){
		this.logger.info(format,arguments);
	}

	@Override
	public void warn(String msg){
		this.logger.warn(msg);
	}

	@Override
	public void warn(String msg,Throwable t){
		this.logger.warn(msg,t);
	}

	@Override
	public void warn(String format,Object arg){
		this.logger.warn(format,arg);
	}

	@Override
	public void warn(String format,Object argA,Object argB){
		this.logger.warn(format,argA,argB);
	}

	@Override
	public void warn(String format,Object... arguments){
		this.logger.warn(format,arguments);
	}

	@Override
	public void error(String msg){
		this.logger.error(msg);
	}

	@Override
	public void error(String msg,Throwable t){
		this.logger.error(msg,t);
	}

	@Override
	public void error(String format,Object arg){
		this.logger.error(format,arg);
	}

	@Override
	public void error(String format,Object argA,Object argB){
		this.logger.error(format,argA,argB);
	}

	@Override
	public void error(String format,Object... arguments){
		this.logger.error(format,arguments);
	}

}